/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Peer;

import model.PeerEntity;

/**
 *
 * @author user
 */
public class PeerMain {
    PeerEntity Peer;

    private final int MAX_PEER = 10;

    public static void mulai(){
        //buat file torrent
        //buka file torrent
        //baca file torrent
        //dapet announce URL, nama file, hash value
        //jalanin Peer Request berdasarkan nama file dan announce
        //baca file response dari tracker
        //mulai download :
        //jalanin PeerDownloads (pake thread) berdasarkan hash value, file_length
        //connect pake TCP ke setiap peer yg punya pieces
    }
}
